package exe3.carrent;

import java.util.Scanner;

public class Business {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        Manager manager=new Manager();
        System.out.println("Giao哥租赁有限公司欢迎您，请致电138-2500-0923洽谈相关业务");
        System.out.println("本公司现有"+manager.getPos()+"辆车可租赁");
        do {
            System.out.println("1.查看车辆信息\t2.租赁\t3.还车\t4.报废\t5.采购新车\t6.查看租赁记录\t9.退出");
            int choice=in.nextInt();
            switch (choice){
                case 1:
                    manager.showCarList();
                    break;
                case 2:
                    manager.rentcar();
                    break;
                case 3:
                    System.out.println("请输入还车的车牌号:");
                    manager.returnthecar(in.next());
                    break;
                case 4:
                    System.out.println("请输入报废的车牌号:");
                    manager.scrap(in.next());
                    break;
                case 5:
                case 6:
                case 7:
            }
        }while (true);
        }
    }
